<?php

namespace app\admin\validate;

use think\Validate;

class Products extends Validate {
    protected $rule = [
        'name' => 'require',
        'category' => 'require'
    ];

    protected $message = [
        'name.require' => '请输入产品名称',
        'category.require' => '请选择产品分类'
    ];
}